<?php	$uri = $_SERVER['REQUEST_URI'];	$uri_var = explode('/', $uri);		$count = count($uri_var);	if(substr($uri,-1,1) == "/")	{		$count = $count-2;	}	else	{		$count = $count-1;	}		for( $i = 0; $i <= $count; $i++ )	{		$var_name[] = "uri_" . $i;	}		for( $i = 0; $i < $count+1; $i++ )	{		${$var_name[$i]}  = $uri_var[$i];	}		// Get uri2 & uri3	if(!empty($uri_var[2])){$filecategory = $uri_var[2];}else{$filecategory = "";}	if(!empty($uri_var[3])){$filename = $uri_var[3];}else{$filename = "";}	$filename_arr = explode(".",$filename);	$filename = $filename_arr[0].".php";		// Get referer	if(isset($_SERVER['HTTP_REFERER']))	{		$http_referer = $_SERVER['HTTP_REFERER'];		$referer = explode("?",$http_referer); //echo $http_referer;die();		$url_referer = $referer[0]; //echo $url_referer;die();	}?>